package com.lantosec.hmrp.modules.sysdata.vo;

import java.util.Date;

import com.lantosec.hmrp.modules.sysdata.entity.SysProcessPublicity;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 流程公示表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-07-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysProcessPublicity对象", description="流程公示表")
public class SysProcessPublicityVO extends BaseVO<SysProcessPublicity> {
    private static final long serialVersionUID = 1L;


    public SysProcessPublicityVO(SysProcessPublicity entity){
        this.id = entity.getId();
        this.proInsId = entity.getProInsId();
        this.taskId = entity.getTaskId();
        this.dataId = entity.getDataId();
        this.layoutId = entity.getLayoutId();
        this.userId = entity.getUserId();
        this.createTime = entity.getCreateTime();
    }

    @Override
    public SysProcessPublicity convertToEntity(){
        return new SysProcessPublicity(this);
    }


    @ApiModelProperty(value = "Id")
    private String id;

    @ApiModelProperty(value = "流程实例Id")
    private String proInsId;

    @ApiModelProperty(value = "任务Id")
    private String taskId;

    @ApiModelProperty(value = "数据Id")
    private String dataId;

    @ApiModelProperty(value = "表单布局Id")
    private String layoutId;

    @ApiModelProperty(value = "操作用户Id")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @ApiModelProperty(value = "流程实例名称")
    private String proInsName;

    @ApiModelProperty(value = "流程定义Id")
    private String processDefinitionId;
}
